package com.llamarun;

import android.graphics.BitmapFactory;
import android.view.View;

public class Pizza extends PowerUp{
	public Pizza (View view)
	{
		this.setBitmap(BitmapFactory.decodeResource(view.getResources(), R.drawable.pizza2));
	}
	
	public void start(Llama llama)
	{
		//prevents game speed from changing...
		GameView.stopSpeedingUp();
		
		//makes you faster
		//llama.setMovementSpeed(30);
		//sends you back 20 seconds in game time
		
		//sends you back in time
		/*if (GameView.gameTime > 300) {
		  GameView.gameTime = GameView.gameTime - 300;
		}
		else {
			GameView.gameTime = 0;
		}*/
	}
	
	public void end(Llama llama)
	{
		GameView.startSpeedingUp();
		//llama.setMovementSpeed(5);
	}
}
